package com.carlinfo.userscenter.users.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * ~POJO(Plain Object java Object:(JavaBean)
 * 	得一个属性
 * 	得提供读写器
 * 	得有一个无参的构造函数
 * 
 * ~类名和表名一样
 * ~属性名和列名一样
 * ~对象和表里面的记录一样
 * ~表中间的下划线去掉
 * 
 * ~列模式:alt + shift + a;
 * ~属性:四类八种默认值是0,包装类型默认是null;
 * @author wangshMac
 */
public class ARole
{
	/* int:可以为0,Integer:可以为null */
	private int id;
	private String name;
	private String content;
	private byte status;
	private Date createTime;
	private Date updateTime;
	private Date pubTime;
	
	/* 关联对象 */
	private List<AAdmins> adminsList = new ArrayList<AAdmins>();
	/* 一个角色下面有多个角色菜单 */
	private List<ARoleMenu> roleMenuList = new ArrayList<ARoleMenu>();

	/* 读写器 */
	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getContent()
	{
		return content;
	}

	public void setContent(String content)
	{
		this.content = content;
	}

	public byte getStatus()
	{
		return status;
	}

	public void setStatus(byte status)
	{
		this.status = status;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getUpdateTime()
	{
		return updateTime;
	}

	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}

	public Date getPubTime()
	{
		return pubTime;
	}

	public void setPubTime(Date pubTime)
	{
		this.pubTime = pubTime;
	}

	@Override
	public String toString()
	{
		return "ARole [id=" + id + ", name=" + name + ", content=" + content + ", status=" + status + ", createTime="
				+ createTime + ", updateTime=" + updateTime + ", pubTime=" + pubTime + "]";
	}

	public List<AAdmins> getAdminsList()
	{
		return adminsList;
	}

	public void setAdminsList(List<AAdmins> adminsList)
	{
		this.adminsList = adminsList;
	}

	public List<ARoleMenu> getRoleMenuList()
	{
		return roleMenuList;
	}

	public void setRoleMenuList(List<ARoleMenu> roleMenuList)
	{
		this.roleMenuList = roleMenuList;
	}
}
